/*
 * =============================================================================
 * "THE BEER-WARE LICENSE" (Revision 42):
 * <eirikb@google.com> wrote this file. As long as you retain this notice you
 * can do whatever you want with this stuff. If we meet some day, and you think
 * this stuff is worth it, you can buy me a beer in return Eirik Brandtzæg
 * =============================================================================
 */
package no.eirikb.roboco.terminal.command;

import java.util.StringTokenizer;
import no.eirikb.roboco.terminal.element.Element;

/**
 *
 * @author eirikb
 * @author <a href="mailto:eirikb@google.com">eirikb@google.com</a>
 */
public class CONNECT extends Command {

    public CONNECT(Element element, StringTokenizer stringTokenizer) {
        super(element, stringTokenizer);
    }

    @Override
    public void execute() {
        getElement().getTerminal().getTerminalServer().initTerminal(
                getElement().getTerminal().getServer(), getStringTokenizer().nextToken());
    }

    public String[] getHelp() {
        return null;
    }
}
